import java.util.ArrayList;

public class NeighborVertex
{
	private int selfIndex;
	private ArrayList<Integer> neighborIndices = new ArrayList<Integer>();
	
	public NeighborVertex(int selfIndex)
	{
		this.selfIndex = selfIndex;
	}
	
	public void addVertex(int i1)
	{
		boolean alreadyUsed = false;
		for(int i : neighborIndices)
		{
			if(i1 == i) alreadyUsed = true;
		}
		if(!alreadyUsed) neighborIndices.add(i1);
	}
}
